package com.study.ioc.demo.factorybean;

import com.study.ioc.demo.bean.TestBeanTwo;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class MyFactoryBean implements FactoryBean<TestBeanTwo> {


    @Override
    public TestBeanTwo getObject() throws Exception {
        return new TestBeanTwo();
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }
}
